package com.kingdee.eas.custom.hspro.fund.HSTOOL;

import javax.ejb.*;
import java.rmi.RemoteException;
import com.kingdee.bos.*;
import com.kingdee.bos.util.BOSObjectType;
import com.kingdee.bos.metadata.IMetaDataPK;
import com.kingdee.bos.metadata.rule.RuleExecutor;
import com.kingdee.bos.metadata.MetaDataPK;
//import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
//import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.IObjectCollection;
import com.kingdee.bos.service.ServiceContext;
import com.kingdee.bos.service.IServiceContext;
import com.kingdee.eas.framework.Result;
import com.kingdee.eas.framework.LineResult;
import com.kingdee.eas.framework.exception.EASMultiException;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;

import java.util.Map;
import com.kingdee.eas.common.EASAppException;
import com.kingdee.eas.common.EASBizException;



public abstract class AbstracthstoolsControllerBean extends AbstractBizControllerBean implements hstoolsController
{
    protected AbstracthstoolsControllerBean()
    {
    }

    protected BOSObjectType getBOSType()
    {
        return new BOSObjectType("9918BD0A");
    }

    public Map getCPBook(Context ctx, Map dataMap) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("27ae8da1-f732-4729-b237-edc8da15ce20"), new Object[]{ctx, dataMap});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            Map retValue = (Map)_getCPBook(ctx, dataMap);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (Map)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected Map _getCPBook(Context ctx, Map dataMap) throws BOSException, EASBizException
    {    	
        return null;
    }

    public boolean checkCPBizDate(Context ctx, Map dataMap) throws BOSException, EASAppException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("e4508849-d197-4134-b0e3-4043685fb9ed"), new Object[]{ctx, dataMap});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            boolean retValue = (boolean)_checkCPBizDate(ctx, dataMap);
            svcCtx.setMethodReturnValue(new Boolean(retValue));
            }
            invokeServiceAfter(svcCtx);
            return ((Boolean)svcCtx.getMethodReturnValue()).booleanValue();
        } catch (BOSException ex) {
            throw ex;
        } catch (EASAppException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected boolean _checkCPBizDate(Context ctx, Map dataMap) throws BOSException, EASAppException
    {    	
        return false;
    }

    public Map getCPInfo(Context ctx, Map dataMap) throws BOSException, EASAppException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("8e60af64-6854-47ae-b8e3-36ff633108ed"), new Object[]{ctx, dataMap});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            Map retValue = (Map)_getCPInfo(ctx, dataMap);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (Map)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } catch (EASAppException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected Map _getCPInfo(Context ctx, Map dataMap) throws BOSException, EASAppException
    {    	
        return null;
    }

    public boolean checkBeforeCPBill(Context ctx, Map dataMap) throws BOSException, EASAppException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("7270410c-f553-4e34-80e2-20b9d972832e"), new Object[]{ctx, dataMap});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            boolean retValue = (boolean)_checkBeforeCPBill(ctx, dataMap);
            svcCtx.setMethodReturnValue(new Boolean(retValue));
            }
            invokeServiceAfter(svcCtx);
            return ((Boolean)svcCtx.getMethodReturnValue()).booleanValue();
        } catch (BOSException ex) {
            throw ex;
        } catch (EASAppException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected boolean _checkBeforeCPBill(Context ctx, Map dataMap) throws BOSException, EASAppException
    {    	
        return false;
    }

}